fronma
Front Matter parser for Rust.
Usage
Add this crate as a dependency:
[]
= "~0.1"
then use fronma::parser::parse
to parse text that has YAML Front Matter:
use parse;
use Deserialize;
Other formats
This library supports the following Front Matter formats:
- YAML (supported by
default
feature) - TOML (requires
toml
feature) - JSON (requires
json
feature)
For example, when you want to use TOML format, add this crate with toml feature:
[]
= { = "~0.1", = ["toml"] }
then use fronma::parser::parse_with_engine
like this:
use Toml;
use parse_with_engine;
use Deserialize;